package com.kingre.et.dao;

import java.util.List;

import com.kingre.et.model.School;
import com.kingre.et.model.User;

public interface IUserDAO extends IGenericDAO<User, Integer> {

    public User findByUsername(String username);

    public List<User> findByNameAndSchool(String roleName, School school, String name);

    public List<User> findByNameAndSubSchool(String roleName, School school, String name);

    public List<User> findByName(String roleName, String name);

    public List<User> findAccounts(String roleName);

    public List<User> findBySchool(School school);

    public List<User> findBySubSchool(School school);

    public User findByStudentId(String studentId, School school);

    public List<User> findExperts();

    public User findByEmail(String email);

}
